#!/usr/bin/env python3

import sys

def main():
    s = sys.stdin.readline()
    l = s.strip().split()
    for i in range(len(l)):
        l[i] = int(l[i])
    for val in range(max(l), min(l) - 1, -1):
        for i in range(len(l)):
            if l[i] <= val:
                print(" ", end="")
            else:
                print("#", end="")
        print("")

if __name__ == "__main__":
    main()
